﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entities;
using Data;
namespace Business
{
   public class TacGiaService
    {
       public static List<TacGiaDTO> GetTacGiaList()
       {
           return TacGiaRepository.GetTacGiacList();
       }
       public static DataTable GetTacGiaDataTable()
       {
           return ConvertTo.DataTable(TacGiaRepository.GetTacGiacList());
       }
       public static TacGiaDTO GetTacGiaByMaTacGia(int maTacGia)
       {
           return TacGiaRepository.GetTacGiaByMaTacGia(maTacGia);
       }
       public static int GetCurrentID()
       {
           return TacGiaRepository.GetCurrentID();
       }
       public static bool CheckDelete(int maTacGia)
       {
           return TacGiaRepository.CheckDelete(maTacGia);
       }
       public static void Insert(TacGiaDTO tacGia)
       {
           TacGiaRepository.Insert(tacGia);
       }
       public static void Update(TacGiaDTO tacGia)
       {
           TacGiaRepository.Update(tacGia);
       }
       public static void Delete(int maTacGia)
       {
           TacGiaRepository.Delete(maTacGia);
       }
    }
}
